<%--
  Created by IntelliJ IDEA.
  User: ghost
  Date: 2019/12/9
  Time: 18:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Object o = session.getAttribute("username");
    if(o == null){
        out.print("<script>alert('请先登录！');" +
                "window.location.href='login.jsp';</script>");
        return;
    }
%>
</body>
</html>
